<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think;
/**
 * ThinkPHP系统异常基类
 */
class Exception extends \Exception
{
    protected $status = 200;

    public function __construct($message = null, $status = 200, $code = 0)
    {
        $this->status = $status;
        parent::__construct($message, $code);
    }

    final public function getStatus()
    {
        return $this->status;
    }
}